<?php

namespace App\Admin\Repositories;

use App\Models\House as Model;
use Dcat\Admin\Repositories\EloquentRepository;

class HouseAudit extends EloquentRepository
{
    /**
     * Model.
     *
     * @var string
     */
    protected $eloquentClass = Model::class;

    public static function pass($id)
    {
        return  Model::where('id',$id)->update(['house_status'=>2]);
    }
    public static function reject($id)
    {
        return  Model::where('id',$id)->update(['house_status'=>1]);
    }
}


